package org.LowAltitudeEconomy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.LowAltitudeEconomy.pojo.Sensor;
import org.springframework.stereotype.Service;

import java.awt.*;

@Service
public interface SensorService {
    //添加新的传感器
    void addSensor(String deviceSn,String longitude,String latitude, Integer userId);

    //获取传感器id
    Sensor findSensorById(Integer sensorId);

    //判断设备是否存在
    boolean existsByDeviceSn(String deviceSn);

    //获取所有传感器
    Page<Sensor> getSensorByDeviceSnAndUserId(String deviceSn, Integer userId, Page<Object> objectPage);

    //获取所有传感器
    Page<Sensor> getAllSensors(Page<Object> objectPage);
}
